package com.xiaode.exce;

import com.jfinal.kit.Kv;


public enum EnumError {


    USER_NOT_LOGIN(4001, "未登录"),
    ACCOUNT_ERROR(4002, "账号错误"),
    PASSWORD_ERROR(4003, "密码错误"),
    ACCOUNT_NO(4004, "账号不存在"),
    ACCOUNT_HAVE(4005, "账号已存在"),
    PHONE_NO(4006, "手机号不存在"),
    PHONE_HAVE(4007, "手机号已存在"),
    REGISTERED_PHONE(4008, "该手机号已注册"),
    USER_REGISTER_ERROR(4009, "用户注册失败"),
    DELETE_USER_ERROR(4010, "用户注销失败"),
    PHONE_ACCOUNT_NULL(4011, "手机号或者账号错误"),
    USER_NULL(4012, "用户不存在!"),
    ACCOUNT_PROHIBIT(4013, "账号已禁用!"),
    NOT_HAVE_AUTHORITY(4014, "没有权限！"),
    UPDATE_PASSWORD_ERROR(4015, "更新密码失败!"),
    UPDATE_USER_ERROR(4016, "更新用户信息失败!"),
    PASSWORD_INCONFORMITY(4017, "密码不符合规则,请重新输入"),
    STUDENT_STATUS_HAVE(4018,"该学籍号已存在!"),
    JOB_NUMBER_HAVE(4019,"工号已存在"),
    NUMBER_TOO_LONG(4020,"学号长度过长"),
    ACCOUNT_NEED_CHANGE(4021,"密码需要更改!"),
    PASSWORD_NOT_ALLOW_ORIGIN(4022,"密码不能为初始密码!"),
    PASSWORD_OLD_NEW_SAME(4023,"新老密码不允许相同!"),
    AUTHORITY_NOT_EXIT(4024,"当前权限不存在"),
    ACCOUNT_DELETE(4025,"账号已被删除"),
    AUTHORITY_NULL(4026,"没有权限,请联系管理员"),
    SHARE_NOT_CREATE_BY_YOU(4027,"该分享不是由您创建!"),
    SHARE_HAS_DELETE(4028,"当前分享已被删除"),
    COMMENTS_HAS_DELETE(4029,"当前评论已经被删除!"),
    CMMENTS_NOT_BELONE_TO_YOU(4030,"当前评论您无权删除!"),
    COMMENTS_HAS_NOT_EXIT(4031,"当前评论不存在!"),
    AUTHORITY_NOT_EXIT_ADMIN(4032,"后台管理系统与APP不要同时使用,请重新登录!"),
    USER_LOGIN_FAIL(4033, "登录失败,请联系管理员!"),
    NOT_HEATHER_TEACHER(4034,"您不是卫生教师,无权操作!"),
    USER_TYPE_NO(4035,"用户类型不支持!"),
    WELINK_HAVE_BINDING(4036,"用户已经绑定基座!"),
    ACCOUNT_PASSWORD_ERROR(4037, "账号或密码错误！"),
    PLATFORM_ERROR(4038, "当前平台不支持！"),
    NOT_HAVE_BASE_PARAM(4039, "缺少基座参数！"),
    BASE_LOGIN_FAIL(4040, "基座登陆失败！"),
    


    APP_USER_TOKEN_ERROR(5001, "登录已失效,请重新登录"),
    SMS_VCode_Send_Failure(5002, "短信验证码发送失败"),
    SMS_VCode_Send_Success(5003, "短信验证码发送成功"),
    VALIDCODE_ERROR(5004, "验证码错误"),
    PARAMETER_ERROR(5005, "参数错误"),
    PARAMETER_NOT_NULL(5006,"内容不能为空!"),
    PARAMETER_FORMAT_ERROR(5007,"参数格式错误!"),
    SECRETPROTECTION_HAVE(5008,"密保已存在!"),
    SECRETPROTECTION_PROBLEM_EQUALS(5009,"密保问题不可相同!"),
    SECRETPROTECTION_NOT_HAVE(5010,"密保不存在!"),
    NOT_HAVE_FREQUENCY(5011,"没有次数了!"),
    ANSWER_ERROR(5012,"答案错误!"),
    NEED_QUESTION_ANSWER(5013,"请先校验问题!"),
    PASSWORD_UPDATE_ERROR(5014,"密码修改失败,请联系管理员!"),


    WORLD_FAIL(6001, "操作失败，存在敏感词"),
    SQL_STORAGE_ERROR(6002, "数据库存储失败"),
    SAVE_ERROR(6003, "保存失败"),
    SYSTEM_ERROR(6004, "系统错误"),
    NOT_HAVE_NEW_V(6005, "没有新版本!"),
    ROOT_NODE_EXIT(6006,"根节点已经存在!"),
    NODE_NAME_REPEAT(6007,"节点名称重复!"),
    ROOT_NODE_NOT_ALLOW_DELETE(6008,"根节点不允许删除!"),
    NODE_EXIT_STUDENT(6009,"当前节点下存在学生,请先迁移学生!"),
    NODE_NOT_EXIT(6010,"当前节点不存在!"),
    NODE_NAME_EXIT(6011,"请核对架构管理中的年级/班级名称"),
    PAENT_NODE_NOT_EXIT(6012,"父节点不存在!"),
    DEPARTMENT_HAVE_CHATGROUP(6013,"当前部门已经创建过群聊!"),
    DEPARTMENT_RUNNER_NOT_ALLOW_NULL(6014,"部门负责人不能为空!"),


    ACCESSTOKEN_NULL(7001, "accessToken不能为空"),
    OPENID_NULL(7002, "openId不能为空"),
    USERAVATAR_NULL(7003, "userAvatar不能为空"),
    WX_USER_NULL(7004, "获取微信用户信息失败"),
    ADD_USER_FAIL(7005, "添加用户信息失败"),
    ADD_ROLR_FAIL(7006, "添加角色信息失败"),
    ENCRYPTEDDATA_NULL(7007, "encryptedData不能为空"),
    JSCODE_NULL(7008, "登录时获取的 code不能为空"),
    AUTHORIZATION_FAIL(7009, "微信授权失败"),


    USER_BIND_FAIL(8001, "用户绑定失败"),
    NOT_HAVE_ACT(8002, "不存在审核或者审核已完成!"),
    EVALUATE_NULL(8003, "不存在评价或者评价已完成!"),
    APPLY_NULL(8004, "申请不存在或者已处理!"),
    NOT_PAIR(8005, "当前教师不是与您结对的教师!"),
    NOT_USER_STUDENT(8008, "不是与你绑定的学生/该学生已换绑其他导师!"),
    NOT_HAVE_EXAMINE(8009, "没有提交的任务!"),
    UPDATE_TASK_FAIL(8010, "修改任务失败"),
    BIND_TEACHER_FAIL(8011, "您已经绑定该教师/当前绑定正在审核"),
    TEACHER_NOT_EXIST(8012, "您当前绑定的教师Id不正确"),
    CANCEL_BIND_TEACHER(8013, "取消绑定教师失败"),
    ACTIVITY_NULL(8014, "当前活动不存在"),
    ACTIVITY_EXAMINE_ED(8015, "学生的活动已经评分"),
    USER_BIND_REPEAT(8016, "已经绑定了这个榜样"),
    NOT_IN_GROUP(8017,"您不在当前群聊"),
    GROUP_NOT_EXIT(8018,"当前群聊不存在!"),
    GROUP_HAS_MUTE(8019,"当前群聊已被禁言!"),
    STUDENT_NOT_ALLOW_CREATE_GROUP(8020,"只有老师可以创建群!"),
    NOT_GROUP_LEADER(8021,"您不是当前群聊的群主!"),
    STAR_FRIENDS_EXIT(8022,"他已经是您的星标联系人!"),
    STAR_FRIENDS_NOT_EXIT(8023,"当前星标联系人不存在!"),
    STAR_NOT_SELECT(8024,"您未选择星标联系人!"),
    NOTICE_NOT_EXIST(8025,"当前公告不存在!"),
    NOTICE_LOG_NOT_EXIST(8026,"当前公告记录不存在!"),
    GROUP_MEMBER_NUM_MAX(8027,"群聊成员数量不能超过群聊成员最大值!"),
    NOT_LEADER_CLASS(8028,"您不是该班班主任!"),
    HAVE_SUBMIT_LOG(8029,"该班级已提交过当天的缺勤记录!"),
    HE_NOT_IN_GROUP(8030,"对方不在当前群聊"),
    NOT_GROUP_MANAGE(8031,"您不是当前群聊的管理!"),
    NOT_BANGDING_STUDENT(8032,"您没有结对的学生!"),

    SUBMIT_TASK_FAIL(9001, "提交任务失败"),
    TASK_OVERDUE(9002,"任务已经过期!"),
    ACTIVITY_TASK_HAVE(9003,"今日活动已存在!"),
    TASK_REPEAT(9004,"任务不能与之前一致!"),
    STUDENT_CAN_NOT_PUBLISH_TASK(9005,"学生无权发布任务!"),
    TASK_TITLE_OUT_LENGTH(9006,"任务标题长度不能超过200!"),
    STUDENT_CAN_NOT_UPDATE_TASK(9007,"学生无权修改任务!"),
    TASK_CONTENT_OUT_LENGTH(9008,"任务内容长度不能超过500!"),
    TASK_NOT_EXIST(9009,"当前任务不存在!"),
    TEACHER_NOT_NEED_COMPLETE_TASK(9010,"教师不需要完成任务!"),
    HAVE_COMPLETE_TASK(9011,"您已经完成过该任务!"),
    EXERCISE_HAVE_REPEAT(9012,"当日锻炼打卡已完成!"),
    EXERCISE_NOT_EXIST(9013,"当日打卡未完成!"),
    EXERCISE_NOT_BELONE_TO_YOU(9014,"当前记录不是由您完成!"),
    RECOMMENT_NOLY_ALLOW_TEACHER(9015,"只允许教师推荐内容!"),
    TASK_ONLY_TEACHER(9016,"只允许教师发布任务!"),


    EXAMPLE_NULL(10001, "榜样不存在!"),
    EXAMPLE_TASK_NULL(10002, "榜样任务不存在!"),
    EXAMPLE_ALREADY_EXISTS(10003, "榜样已经存在!"),
    EXAMPLE_TASK_Full(10004, "榜样任务以达到上线,如需添加,请修改之前任务!"),
    EXAMPLE_FIELD_NULL(10005,"榜样属性不能为空,请填写榜样信息."),
    NOT_HAVE_EXAMPLE_IMG(10006,"请添加榜样图片!"),
    EXAMPLE_TOOMANEY(10007,"榜样绑定数量已达上限"),
    EXAMPLE_TASK_NOT_THREE(10008,"榜样任务数量不足3个,请填写榜样任务."),
    DEADLINE_NOT_INCORRECT(10009,"请设置正确的截止时间."),
    DEADLINE_NOT_COME(10010,"未到截止日期,暂时不能修改."),
    EXAMPLE_IS_FULL(10011,"您已经创建了榜样/您创建的榜样正在审核中"),
    TASK_HAVE_OVERDUE(10012,"任务已经过期"),
    STUDENT_HAVA_PAIR(10013,"该学生已经存在绑定教师!"),
    EXAMPLE_NOT_BIND(10014,"该榜样您尚未绑定!"),
    EXAMPLE_STATE_PASS(10015,"该榜样已经通过,不允许修改!"),
    ENDTIME_LOW(10016,"截止日期必须大于起始日期!"),
    END_TIME_NOT_ALLOW_NULL(10017,"截止日期不能为空"),
    EXAMPLE_MUST_UPDATE(10018,"请修改榜样信息!"),
    NOT_EXIT_CANCEL_PARI(10019,"当前解绑申请已被审核过/解绑申请不存在!"),
    HAVE_APPLY_CANCEL_PAIR(10020,"您已经提交了解绑申请!"),
    EXAMPLE_TASK_TOO_LONG(10021,"榜样任务长度过长,请限制在200个字符以内!"),
    ACTIVITY_TOO_LONG(10022,"活动任务长度过长,请限制在255字符以内!"),
    TASK_CONTENT_TOO_LONG(10023,"任务长度过长,请限制在100字符以内!"),
    ENDTIME_BEFOR_NOW(10224,"截止日期必须大于当前日期!"),

    HAVE_RELATION_ADMIN(11000, "存在关联此角色的管理员!"),
    ROLE_NULL(11001, "不存在此角色!"),
    TEACHER_ROLE_NOT_ALLOW_UPDATE(11002,"教师角色为基础角色,不可禁用/删除,不可修改名称!"),

    EXCEL_NOT_EXIST(12001, "当前excel不存在!"),
    EXCEL_INCORRECT_FORMAT(12002, "当前文件格式不正确,请使用xls或者xlsx格式的文件"),
    PIC_INCORRECT_FORMAT(12003,"图片格式不正确,请使用jpg或png格式的图片."),
    FILE_TOO_BIG(12004,"文件大小超出限制(10m)"),
    SERVICE_FAIL(12005,"当前服务不可用,请稍后重试!"),
    PIC_NOT_EXIST(12006,"图片不存在!"),
    IS_UPDATE_EXIST_NULL(12007,"请选择是否更新已存在学生"),
    PIC_NOT_NULL(12008,"图片不能为空!"),
    PIC_TOO_MANEY(12009,"图片数量过多,最多不能超过9张!"),
    EXCEL_NOTALLOW_FORMAT(12002, "当前文件内容不符合模板规范"),
    FILE_ACCOUNT_REPEAT(12003,"当前文件中包含重复学籍号"),
    EXCEL_ACCOUNT_REPEAT(12004,"文件中学籍号与已存储的账号相同,请修改"),
    TITLE_LENGTH_NOT_ALLOW(12005,"标题长度不在允许范围内,1-20位"),
    CONTENT_LENGTH_NOT_ALLOW(12005,"内容长度不在允许范围内,1-700位"),
    STATE_NOT_ALLOW(12006,"内容可见范围不正确"),
    TYPE_NOT_ALLOW(12007,"不允许的分享类型"),
    PIC_TOO_MANY(12008,"图片数量过多"),



    STUDENT_GRADEID_NOT_ALLOW(13001,"当前学生届别不在允许范围内."),
    SCHOOLYEAR_MUST_NOT_NULL(13002,"当前届别不能为空!"),

    COMMENT_NOT_ALLOW_EMPTY(14001,"评论内容不能为空!"),
    CONTENT_NOT_ALLOW_EMPTY(14002,"分享内容不能为空!"),
    ADMIN_NOT_ALLOW_STUDENT_CAN_LOOK(14003,"教师只允许发布公共内容!"),
    NOT_ALLOW_RECOMMEND_ARTICLE(14004,"不允许推荐自己发布内容!"),
    VOICE_ALLOW_ONE(14005,"视频、音频文件允许上传一个!"),
    ALLOW_ADMIN_EXAMINE(14006,"仅允许教师查看/审核学生任务审核!"),
    TASK_HAVA_EXAMINED(14007,"任务已经被审核!"),
    STUDENT_NOT_EXIT(14008,"当前学生不存在!"),
    TASK_TYPE_ERROR(14009,"任务类型错误!"),
    ACTIVITY_ONLY_TEACHER(14010,"仅教师可以发布活动!"),
    USER_HAVA_SINGN_UP_ACTIVITY(14011,"用户已经报名了该活动!"),
    ACTIVITY_ONLY_STUDENT_PAR(14012,"活动仅能学生参与!"),
    NOT_ENROLL_ACTIVITY(14013,"您尚未报名该活动!"),
    ACTIVITY_FILES_HAVE_EVALUATE(14014,"您参与的活动已经审核完成,不能再次提交!"),
    NOT_PAR_ACTIVITY(14015,"您尚未参与该活动!"),
    ACTIVITY_NOT_EXAMIN(14016,"活动尚未审核完成!"),
    CAMPUS_TYPE_NOT_CORRECT(14017,"原创发布类型不正确!"),
    ACTIVITY_USER_NOT_EXIST(14018,"活动完成详情不存在!"),
    ACTIVITY_NOT_PUBLISHED_BY_YOU(14019,"当前活动你不可审核!"),
    TASK_LENGTH_TOO_LONG(14020,"任务长度过长,请限制在500字以内!"),
    COMMENTS_LENGTH_TOO_LONG(14021,"评论长度过长,请限制在255字以内!"),
    KEY_RES_LENGTH_TOO_LONG(14020,"关键结果长度过长,请限制在200字以内!"),
    ACTIVITY_ONLY_STUDENT(14021,"该发布仅学生可见!"),
    COMMENT_NULL(14022,"评论不存在!"),
    COMMENT_DELE_ME(14023,"只可删除自己的评论!"),
    ACTIVITY_NOT_PUBLIC_RANKING(14024,"活动未发布排名!"),
    ACTIVITY_END(14025,"活动提交结束!"),
    MEDAL_NAME_UNLIKE(14026,"勋章名称不同!"),
    ACTIVITY_FINISH(14020,"活动已经结束!"),



    UPFILE_NOT_ALLOW(15001,"当前文件类型暂不支持!"),
    FILE_NOT_EXIST(15002,"当前文件不存在!"),
    FILE_NOT_ALLOW_UPLOAD(15003,"文件不允许上传!"),
    FILE_NULL(15004,"您未选择任何文件"),
    FILE_HAS_CONFIM(15005,"不存在需要确认的文件"),


    NOT_AVAILABLE(16001,"未通过认证!"),
    MBTI_NOT_COMPLETE(16002,"您尚未完成Mbti测试题目!"),
    MBTI_PERSONALITY_NOT_EXIST(16003,"当前人格不存在,请联系管理员!"),
    MBTI_NOT_EXIST_SUCH_QUESTION(16004,"题目id有误,请联系管理员!"),
    
    
    CURRICULUM_NULL(17001,"课程不存在!"),
    CURRICULUM_MOD_NULL(17002,"课程类型不存在!"),
    CHAPTER_NULL(17003,"章节不存在!"),
    CURRICULUM_GOOD_COUNT(17004,"好课推荐不能超过4门!"),
    
    
    FACE_EXAMINE_NULL(18001,"人脸审核不存在!"),
    ADD_FACE_FAIL(18002,"添加人脸失败!"),
    MONITOR_CLASSROOM(18003,"自习教室不存在!"),
    HAVE_CLASSROOM_NAME(18004,"自习教室名称已存在!"),
    
    
    CALL_FREQUENCY_EXCEED(19001,"期限内请求次数上限!")
    
    ;


    private int code;
    private String msg;

    private EnumError(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Kv getObj() {
        return Kv.by("msg", this.msg).set("code", this.code);
    }


}
	

